*Replication Instructions for

*Explaining Partisan Gaps in Satisfaction with Democracy after Contentious Elections: Evidence from a U.S. 2020 Election Panel Survey

*Sam Whitt , Alixandra B. Yanus , Mark Setzler , Brian McDonald ,John Graeber , Gordon Ballingrud , Martin Kifer 

*Department of Political Science
*High Point University
*One University Parkway
*High Point, NC 27268


*Below are instructions for replicating all manuscript and online appendix tables and figures in STATA using the wide format of the dataset 
*“PS 2020 Election Panel Replication Data_wide format_finalversion” 

*Manuscript Text

*“A total of 1564 completed the study (955 total in wave 1 and 609 in wave 2), of which 504 completed both the pre- and post-election waves.”

tab T1_date
tab T2_date

*“Our panel sample consisted of 41.5% Democrats, 29.8% Republicans, and 24.4% independents.”

tab partyid

*“Among Democrats, 55.0% were somewhat or very satisfied before the election and this proportion increased to 66.8% after the election, while Republican satisfaction with democracy fell from 66.0% to 56.7.3% after the election. In contrast, independents, whose satisfaction with democracy is lower than either Democrats and Republicans (43.5% before, 43.9% after the election), did not change following the election.”

tab T1_DEM4_1 if partyid==1
tab T2_DEM4_1 if partyid==1
tab T1_DEM4_1 if partyid==2
tab T2_DEM4_1 if partyid==2
tab T1_DEM4_1 if partyid==3
tab T2_DEM4_1 if partyid==3

*“Comparing means using matched-pair t-tests, Democratic satisfaction increased (t=4.03, p<0.0000), Republican satisfaction decreased (t=-3.62, p<0.0002), while Independents did not change (t=0.12, p<0.4543) from before/after the election.”

ttest T1_DEM4_1 = T2_DEM4_1 if partyid==1
ttest T1_DEM4_1 = T2_DEM4_1 if partyid==2
ttest T1_DEM4_1 = T2_DEM4_1 if partyid==3

*Manuscript Figure 2a (use wide format dataset)

*may require installation of cibar package from http://fmwww.bc.edu/RePEc/bocode/c

ssc install cibar

cibar revdiffdemqual if partyid<4, over1(partyid)

*Note additional formating requires the "Figure 2a formatting.grec" file with the command graph play "Figure 2a formatting.grec"

*Manuscript Figure 2b (use long-format dataset)

*“We combine the four negative affect responses into an index, which factor analysis showed to capture single latent negative affect (Cronbach alpha=0.87).”

alpha angry afraid sad worried

*requires gen(negaffect) to create index

*Table 1

reg revdiffdemqual republican democrat, robust
reg futureeconomy republican democrat, robust
reg futureincome republican democrat, robust
reg revnegaffect republican democrat, robust
reg revdiffdemelect republican democrat, robust
reg revdifffreefair republican democrat, robust
reg revdiffdemmedia republican democrat, robust

*Table 2

reg revdiffdemqual republican democrat, robust
reg revdiffdemqual republican democrat futureeconomy futureincome, robust
reg revdiffdemqual republican democrat revnegaffect, robust
reg revdiffdemqual republican democrat revdiffdemelect, robust
reg revdiffdemqual republican democrat revdifffreefair, robust
reg revdiffdemqual republican democrat revdiffdemmedia , robust
reg revdiffdemqual republican democrat futureeconomy futureincome revnegaffect revdiffdemelect revdifffreefair revdiffdemmedia , robust


*Figure 3. See supplementary appendix and file in excel “MS. Figure 3” in “Elections and Democracy All Excel Files.xls”

*Online Appendix

*Table 1 (wide format). Partisan Satisfaction with Democracy and Plausible Mediators (OLS Regression)

reg revdiffdemqual republican democrat, robust
reg futureeconomy republican democrat, robust
reg futureincome republican democrat, robust
reg revnegaffect republican democrat, robust
reg revdiffdemelect republican democrat, robust
reg revdifffreefair republican democrat, robust
reg revdiffdemmedia republican democrat, robust

*Table 2 (wide format). Mediators of the Post-Election Partisan Gap (OLS Regression)

reg revdiffdemqual republican democrat, robust
reg revdiffdemqual republican democrat futureeconomy futureincome, robust
reg revdiffdemqual republican democrat revnegaffect, robust
reg revdiffdemqual republican democrat revdiffdemelect, robust
reg revdiffdemqual republican democrat revdifffreefair, robust
reg revdiffdemqual republican democrat revdiffdemmedia , robust
reg revdiffdemqual republican democrat futureeconomy futureincome revnegaffect revdiffdemelect revdifffreefair revdiffdemmedia , robust

*Ordered Probit Estimation (Wide Format)

*Table 1 (wide format). Partisan Satisfaction with Democracy and Plausible Mediators (Ordered Probit Regression)

oprobit revdiffdemqual republican democrat, robust
oprobit futureeconomy republican democrat, robust
oprobit futureincome republican democrat, robust
oprobit revdiffdemelect republican democrat, robust
oprobit revdifffreefair republican democrat, robust
oprobit revdiffdemmedia republican democrat, robust

*Table 2 (wide format). Mediators of the Post-Election Partisan Gap (Ordered Probit Regression)

oprobit revdiffdemqual republican democrat, robust
oprobit revdiffdemqual republican democrat futureeconomy futureincome, robust
oprobit revdiffdemqual republican democrat revnegaffect, robust
oprobit revdiffdemqual republican democrat revdiffdemelect, robust
oprobit revdiffdemqual republican democrat revdifffreefair, robust
oprobit revdiffdemqual republican democrat revdiffdemmedia , robust
oprobit revdiffdemqual republican democrat futureeconomy futureincome revnegaffect revdiffdemelect revdifffreefair revdiffdemmedia , robust

log close
